<?php
	class conexao{
		var $host = "localhost";
		var $user = "root"; 
		var $pass = "";
		var $db = "biblioteca";

		public function conectar(){
			$conexao = mysql_connect($this->host,$this->user,$this->pass) or die("Erro ao conectar!");
			if($conexao)
				mysql_select_db($this->db,$conexao);
			return $conexao;
		}
	}
?>
